package com.yyz.zjjcms.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.yyz.zjjcms.model.User;
@Repository
public interface UserRepository extends IDAO<User>{

	@Query("from User u where u.logName=?1 and u.passwd = ?2")
	User findOneByLogNmaeAndPasswd(String loginname, String password);

}
